package com.cdh.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdh.edu.entity.Subject;
import com.cdh.edu.entity.subject.OneSubject;
import com.cdh.edu.entity.vo.SubjectVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cdh
 * @since 2020-10-19
 */
public interface SubjectService extends IService<Subject> {

    /**
     * 添加技术分类
     * @param file
     * @param subjectService
     */
    void saveSubject(MultipartFile file, SubjectService subjectService);

    /**
     * 技术分类列表(树形)
     * @return
     */
    List<OneSubject> getAllOneTwoSubject();

    List<SubjectVo> nestedList();
}
